/*
*************************************************
				Copyagent
	------------------------------------------
	            parser_test.c
*************************************************
Test pentru parserul html
*/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>


#define BUFF_SIZE 4096
extern char text_buffer[BUFF_SIZE];
extern char link_buffer[BUFF_SIZE];


extern void adauga_la_text(char arg);
extern void adauga_la_linkuri(char arg);
extern void FSM (char arg);

int main(int argc, char ** argv)
{
	int i = 0;
	char * html = "ceva  <html a href=+www.mic";
	for ( i = 0 ; i < strlen (html) ; i++)
		FSM(html[i]);
	html = "rosoft.com+> Acesta este un text </html>";
	for ( i = 0 ; i < strlen (html) ; i++)
		FSM(html[i]);	
		
	printf("Link buffer: %s \n",link_buffer);
	printf("Text buffer: %s \n",text_buffer);
	return 0;
}
